#ifndef MII_RESIZER_H
#define MII_RESIZER_H


typedef unsigned char           kal_uint8;
typedef signed char             kal_int8;
typedef char                    kal_char;
typedef unsigned short          kal_wchar;

typedef unsigned short int      kal_uint16;
typedef signed short int        kal_int16;

typedef unsigned int            kal_uint32;
typedef signed int              kal_int32;


typedef enum 
{
  KAL_FALSE,
  KAL_TRUE
} kal_bool;



#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

extern void mii_isp_resize_open(kal_uint32 w_s, kal_uint32 image_org_width, kal_uint32 image_org_height);
extern void mii_isp_resize_close(void);
extern void mii_isp_resize_config(kal_uint16 s_w, kal_uint16 s_h, kal_uint32 d_addr, kal_uint16 d_w, kal_uint16 d_h);
extern void mii_isp_resize_config1(kal_uint16 s_w, kal_uint16 s_h, kal_uint32 d_addr, kal_uint16 d_w, kal_uint16 d_h,	kal_uint32  s_addrY,kal_uint32  s_addrU,kal_uint32  s_addrV);
extern void mii_isp_resize_start(kal_uint32 s_addr, kal_uint32 d_addr);
extern void mii_isp_resize_start1(kal_uint32 d_addr,	kal_uint32  s_addrY,kal_uint32  s_addrU,kal_uint32  s_addrV);
extern void mii_isp_resize_stop(void);
extern void mii_resize_busy_wait(void);
extern int mii_isp_resize_busy_check(void);
extern void yuv420_to_yuv422(unsigned char* yuv420[3], unsigned char*  dest, int width,  int height, signed long decode_stride[3] ,int display_stride,int RT_TYPE) ;
extern int  MII_Get_Resize_Status(void);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* MII_RESIZER_H */ 
